package com.sumainfor.pc.market.controller;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.service.MinistryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 功能描述:
 * 服务中心
 * @Auther: zhlu
 * @Date: 2018/12/11 10:25
 * @Description:
 */
@RestController
@RequestMapping("/mi")
public class MinistryController {

    @Autowired
    MinistryService ministryService;

    /**
     * 功能描述:
     * 获取服务中心列表
     * @Author zhlu
     * @Description //TODO
     * @Date 2018/12/11 10:27
     */
    @ResponseBody
    @GetMapping("/SelectMinistryList")
    public JsonResult SelectMinistryList(){
        JsonResult result=new JsonResult();
        result.put(ministryService.SelectMinistryList());
        return result;
    }
}
